<template>
  <div>
    <p>评论：<input type="text" v-model="form.comment"></p>
    <button @click="com">评论</button>
  </div>
</template>

<script>
export default {
  name: "com_wenz",
  data() {
    return {
      form: {'uid': localStorage.getItem('wenid'), 'wid': this.$route.query.id}
    }
  },
  methods: {
    com() {
      this.$axios.post('/wenz/com', this.form)
        .then(res => {
          if (res.data.code == 200) {
            alert('评论成功')
          }
        })
    }
  }

}
</script>

<style scoped>

</style>
